package com.cjm.one.custom.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjm.one.common.result.Result;
import com.cjm.one.model.base.TokenVo;
import com.cjm.one.model.custom.entity.CustomerInfo;
import com.cjm.one.model.custom.vo.CustomerInfoVo;
import com.cjm.one.model.custom.vo.RegisterVO;
import com.cjm.one.model.payment.BalanceDto;
import com.cjm.one.model.system.vo.LoginVo;

import java.math.BigDecimal;

/**
* @author 29289
* @description 针对表【customer_info(客户表)】的数据库操作Service
* @createDate 2024-11-04 16:20:11
*/
public interface CustomerInfoService extends IService<CustomerInfo> {

    Page<CustomerInfo> getUserList(Integer current, Integer size, String name, String phone, Long userId, String level,String email);

    Boolean updateByIdInfo(CustomerInfo customerInfo);

   CustomerInfo getByEmail(String email);

    CustomerInfo getByPhone(String phone);

    TokenVo login(LoginVo loginVo);



    Boolean register(RegisterVO registerVO);

    Boolean addBalance(Long id, BigDecimal value);


    Long pay(BalanceDto balanceDto);

    Boolean refund(String orderNo);
}
